using PoemGame.Domain.PlayerAggregate;

namespace SpecFlow.PoemGame.Domain.StepDefinitions
{
    [Binding]
    public class PlayerScoreStepDefinitions
    {
        private Player player;
        [Given(@"创建玩家")]
        public void Given创建玩家()
        {
             player = new Player(Guid.NewGuid(), "Zhangsan", "张三", 0);
        }

        [When(@"分数加 (.*)")]
        public void When分数加(int p0)
        {
           player.IncreaseScore(p0);
        }

        [Then(@"玩家分数为 (.*)")]
        public void Then玩家分数为(int p0)
        {
            Assert.Equal(p0,player.Score);
        }
    }
}
